package cn.puge.servicebase.exceptionhandler;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: LiJW-
 * @date: 2020/4/3 23:16
 * 文件说明：异常返回包装类
 */

@Data
@AllArgsConstructor   //生成有参构造方法
@NoArgsConstructor    //生成无参构造方法
public class PuGeiException extends RuntimeException {

    @ApiModelProperty(value = "状态码")
    private Integer code;
    @ApiModelProperty(value = "异常信息")
    private String msg;

}